%h1=_ "Editing settings" 
- form_tag :action => 'update', :id => @setting do
  %p
    =_ "Title"
    = ":"
    = text_field 'setting', 'title' 
  %p
    =_ "Subtitle"
    = ":"
    = text_field 'setting', 'subtitle' 
  %p
    =_ "Admin email"
    = ":"
    = text_field 'setting', 'admin_email' 
  %p
    =_ "Url"
    = ":"
    = text_field 'setting', 'url' 
  %p
    =_ "Theme"
    = ":"
    %select{:id=>"setting_theme",:name=>"setting[theme]"}
      - for theme in @themes 
        - if theme[0]!=46 
          - if @setting.theme.to_s==theme.to_s
            %option{:value=>theme, :selected=>"true"}
              = theme
          - else 
            %option{:value=>theme}
              = theme
  %p
    =_ "Visits stats"
    = ":"
    = check_box 'setting', 'stats'
  %p
    =_ "Mail notification"
    = ":"
    = check_box 'setting', 'mail_notification' 
  %p
    =_ "Mail host"
    = ":"
    = text_field 'setting', 'mail_host' 
  %p
    =_ "Mail user" 
    = ":"
    = text_field 'setting', 'mail_user'  
  %p
    =_ "Mail password"
    = ":"
    = text_field 'setting', 'mail_password' 
  %p
    =_ "Mail domain"
    = ":"
    = text_field 'setting', 'mail_domain' 
  %p
    =_ "Mail authentication"
    = ":"
    = text_field 'setting', 'mail_authentication' 
  %p
    =_ "Mail port"
    = ":"
    = text_field 'setting', 'mail_port'  
  %p
    =_ "Comment activation"
    = ":"
    = check_box 'setting', 'comment_activation'  
  %p
    =_ "Comment moderation"
    = ":"
    = check_box 'setting', 'comment_moderation'
  %p
    =_ "Keywords"
    = ":"
    = text_field 'setting', 'keywords'
  %p
    =_ "Akismet key"
    = ":"
    = text_field 'setting', 'akismet'
  %p
    =_ "Use Proxy"
    = ":"
    = check_box 'setting', 'proxy_use'
  %p
    =_ "Proxy address"
    = ":"
    = text_field 'setting', 'proxy_addr'
  %p
    =_ "Proxy port"
    = ":"
    = text_field 'setting', 'proxy_port' 
  = submit_tag _('Edit')
= "<br>"
= link_to _('Show'), :action => 'show', :id => @setting 
= "|"
= link_to _('Back'), :action => 'list'
